package com.lago.proxy;

/**
 * @author yuhe
 * @version 1.0
 * @date 2020/11/19 11:03
 */
public class proxyTest {

    public static void main(String[] args) {
        System.out.println("不使用代理类");
        Person person =new Bob();
        person.dosometing();

        System.out.println("-----------------");
        System.out.println("使用代理类");
        Person target =(Person) new JDKDyamicProxy(new Bob()).getTarget();
        target.dosometing();
    }
}
